﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;

namespace BLL
{
  public   class ShortageBiz
    {
      ShortageDao shortageDao = new ShortageDao();
        public bool Insert(string tableName, SortedDictionary<string, string> sdList)
        {
            return shortageDao.Insert(tableName, sdList);
        }


        public bool Update(string tableName, SortedDictionary<string, string> sdList)
        {
            return shortageDao.Update(tableName, sdList);
        }

        public bool DeleteOneInfo(string shortageID)
        {
            return shortageDao.DeleteOneInfo(shortageID);
        }
        public DataTable GetOneInfo(string shortageID)
        {
            return shortageDao.GetOneInfo(shortageID);
        }

        public DataTable GetLists(string deptName, string serWord, string bTime, string eTime)
        {
            return shortageDao.GetLists(deptName, serWord, bTime, eTime);
        }

        public DataTable GetOutLists(string deptName, string serWord, string bTime, string eTime)
        {
            return shortageDao.GetOutLists(deptName, serWord, bTime, eTime);
        }
    }
}
